package com.xhdx.nativ;
public class DesDemo 
 {
     static
     {

         System.loadLibrary("goodluck");
     }

     public native static String DesPinEnc(String acno, String pin);
     public native static String DesPinDec(String acno, String pin);

     public static void main(String[] args)
     {
         try{
		 DesDemo test = new DesDemo();
		 String acno="0000000000000000000";
		 String pin="111111";
		 System.out.println("acno:"+acno);
		 System.out.println("pin:"+pin);
		 String EnPin=test.DesPinEnc(acno,pin);
		 System.out.println("加密:"+EnPin);
		 System.out.println("=============================");
		 String DcPin=test.DesPinDec(acno,EnPin);
		 System.out.println("解密:"+DcPin);
	 }catch(Exception ex)
	 {
		 System.out.println("ssssss");
	 }
     }
}
